package org.taurus.test;

import java.util.Date;
import java.util.UUID;

import org.junit.Test;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;
import org.taurus.model.Tuser;
import org.taurus.service.UserService;


public class TestHibernate {
	@Test
	public void test(){
//		ApplicationContext ac=new ClassPathXmlApplicationContext(new String[]{"classpath:applicationContext.xml","classpath:spring-hibernate.xml"});
//		UserService userService=(UserService) ac.getBean("userService");
//		Tuser t=new Tuser();
//		t.setId(UUID.randomUUID().toString());
//		t.setName("123");
//		t.setPwd("abc");
//		t.setCreateDateTime(new Date());
//		userService.save(t);
	}
}
